package com.common.orm.sqlparameters;
import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * @author Dmitry
 */
public abstract class SqlParameter {

    private String name;

    public String getName() {
        return name;
    }

    public SqlParameter(String name){
        setName(name);
    }
    
    public final SqlParameter setName(String name) {
        this.name = name;
        return this;
    }

    abstract public void process(int index, PreparedStatement prepStatement) throws SQLException;
}
